<?php namespace App\Utils;

class Permissions{

	private $permissions = array();

	public function __construct(){
		$this->permissions = config('permissions');
	}

	public function getPermissions(){

		$array = $this->permissions;

		$outArr = array();

		$i = 0;

		foreach($array as $key => $val){

			foreach($val as $value){
				$outArr[$key.".".$value] = $key.".".$value;
			}
		}

		return $outArr;
	}
}